package com.pro.beans;

import com.pro.entity.AlarmType;

public class AlarmTypeResult {
	private String count;
	private String type;
	
	public AlarmTypeResult(String count, String type) {
		super();
		this.count = count;
		this.type = type;
	}
	public String getCount() {
		return count;
	}
	public void setCount(String count) {
		this.count = count;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getTypeName(){
		for(AlarmType alarmType:AlarmType.values()){
			if(alarmType.getId().equals(type))
				return alarmType.getName();
		}
		return "";
	}
}
